using System;
using System.Collections.Generic;
using System.Text;

namespace DiggTools
{
    /// <summary>
    /// This class represents a single activity object which contains information about the number of diggs and comments during a certain period of time
    /// </summary>
    public class Activity
    {
        /// <summary>
        /// Constructor that initializes private data about the activity
        /// </summary>
        /// <param name="period">The period of the activity</param>
        /// <param name="start">The start date for the period</param>
        /// <param name="end">The end date for the period</param>
        /// <param name="diggs">The number of diggs over this period</param>
        /// <param name="comments">The number of comments over this period</param>
        public Activity(String period, DateTime start, DateTime end, int diggs, int comments)
        {
            _period = period;
            _start = start;
            _end = end;
            _diggs = diggs;
            _comments = comments;
        }

        /// <summary>
        /// Gets the period of the activity
        /// </summary>
        /// <returns>The period of the activity</returns>
        public String getPeriod()
        {
            return _period;
        }

        /// <summary>
        /// Gets the start date of the activity
        /// </summary>
        /// <returns>The start date of the activity</returns>
        public DateTime getStart()
        {
            return _start;
        }

        /// <summary>
        /// Gets the end date of the activity
        /// </summary>
        /// <returns>The end date of the activity</returns>
        public DateTime getEnd()
        {
            return _end;
        }

        /// <summary>
        /// Gets the number of diggs during this period of activity
        /// </summary>
        /// <returns>The number of diggs</returns>
        public int getDiggs()
        {
            return _diggs;
        }

        /// <summary>
        /// Gets the number of comments during this period of activity
        /// </summary>
        /// <returns>The number of comments</returns>
        public int getComments()
        {
            return _comments;
        }

        private String _period;
        private DateTime _start;
        private DateTime _end;
        private int _diggs;
        private int _comments;
    }
}
